# import cv2 as cv
# img = cv.imread('D:/20190322175246.png') #原始图 彩色，3通道
# height,width,channels=img.shape
# print(img.size)#图像大小，单位字节
# print(img.dtype) #uint8
# print(img.shape[0])
# print(img.shape[1])
# print(img.shape[2])
# # print(height) #高--行数
# # print(width)#宽---列数
# # print(channels) #通道数
# img = cv.imread('D:/20190322175246.png',0)#灰度图
# height,width=img.shape


# import cv2 as cv
# # import numpy as np
# # img= cv.imread("d:/mv1.png")
# # cv.imshow("old",img)
# # #获取人脸图片
# # face=img[220:400,220:350]
# # cv.imshow("face",face)
# # #保存人脸图像
# # cv.imwrite("d:/face.png",face)
# # cv.waitKey(0)
